package {{ packageName }}.sample.infrastructure.secondary;

import {{ packageName }}.UnitTest;
import org.junit.jupiter.api.Test;

import static {{ packageName }}.sample.domain.beer.BeersFixture.beer;
import static org.assertj.core.api.Assertions.assertThat;

@UnitTest
class BeerCatalogTableTest {

  @Test
  void shouldConvertFromAndToDomain() {
    assertThat(BeerCatalogTable.from(beer()).toDomain()).usingRecursiveComparison().isEqualTo(beer());
  }
}
